package com.lovo.sgproj.service.imp;

import com.lovo.sgproj.bean.RecordBean;
import com.lovo.sgproj.dao.RecordDAO;
import com.lovo.sgproj.dao.imp.RecordDAOImp;
import com.lovo.sgproj.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class RecordServiceImp implements RecordService {
    @Autowired
    RecordDAO recordDAO;

    @Override
    public void addRecord(RecordBean record, int roomId) {
        recordDAO.insertRecord(record, roomId);
    }

    @Override
    public void processRecord(int recordId, int roomID) {
        recordDAO.updateRecord(recordId, roomID);
    }
}
